package com.cjf.aop.annotation;

import com.cjf.aop.enums.ThreadType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 线程注解
 * created by cjf
 * on: 2020/3/19
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface WorkThread {

    @ThreadType int value() default ThreadType.MAIN;
}
